import request from '@/utils/request'
// 客户


//获取会员列表
export function getGoodsList(params) {
    return request({
        url: '/mall/goods',
        method: 'get',
        params
    })
}
export function detailGoods(goods_id) {
    return request({
        url: '/mall/goods/detail',
        method: 'get',
        params:{"goods_id":goods_id}
    })
}

export function createGoods(data) {
    return request({
        url: '/mall/goods/create',
        method: 'post',
        data
    })
}

export function updateGoods(data) {
    return request({
        url: '/mall/goods/update',
        method: 'put',
        data
    })
}
